package com.drama.api.sys.authority.domain.po;

import com.drama.api.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;

@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "sys_role")
public class SysAuthorityPO extends BaseEntity {

    /**
     * 父权限
     */
    @Column(name = "parent_id")
    private String parentId;

    /**
     * 权限名称
     */
    @Column(name = "authority_name")
    private String authorityName;

    /**
     * 1.权限菜单；2.权限按钮
     */
    @Column(name = "authority_type")
    private Boolean authorityType;

    /**
     * 权限连接
     */
    @Column(name = "authority_url")
    private String authorityUrl;

}